package com.letoken.platform.repo.admin.req.mall;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author letokenlabs
 * @date 2022/11/23$
 */
@Data
@ApiModel(value = "分类新增修改请求对象", description = "分类新增修改请求对象")
public class MallStoreCategorySaveOrUpdateReq implements Serializable {

    @ApiModelProperty("记录id")
    private Integer id;

    @ApiModelProperty("名称")
    @NotBlank(message = "分类名称必传")
    private String level;

    @ApiModelProperty("上级ID")
    private Integer chapterParent;


    @ApiModelProperty("排序值 倒序")
    private Integer sort;

    @ApiModelProperty("图标")
    @NotBlank(message = "分类图标必传")
    private String icon;

    @ApiModelProperty("状态")
    private Integer state;

}
